/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     McuExt_UserFault.h                                                                        *
 *  \brief    This file contains interface header for McuExt MCAL driver, ...                           *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/09/13     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef MCUEXT_FAULT_H
#define MCUEXT_FAULT_H

/********************************************************************************************************
 *                                 Global Macro definition                                              *
 *******************************************************************************************************/
#ifndef MCUEXT_FAULT_INJECTION
#define MCUEXT_FAULT_INJECTION                                              (STD_OFF)
#endif

#if (MCUEXT_FAULT_INJECTION == STD_OFF)
/** \brief  FUNCTION:McuExt_Ip_PvtEnableAlarm() fault injection. */
#define McuExtHookBegin_McuExt_Ip_PvtEnableAlarm()

/** \brief  FUNCTION:McuExt_Ip_PvtIsTempSensorRunning() fault injection. */
#define McuExtHookBegin_McuExt_Ip_PvtIsTempSensorRunning()

/** \brief  FUNCTION:McuExt_Ip_PvtIrqHandler() fault injection. */
#define McuExtHookBegin_McuExt_Ip_PvtIrqHandler()
#define McuExtHookBegin_McuExt_Ip_PvtIrqHandlerChannel()

/** \brief  FUNCTION:McuExt_Ip_PvtIrqHandler() fault injection. */
#define McuExtHookEnd_McuExt_Ip_PvtIrqHandler()

/** \brief  FUNCTION:Vd_ClrIntState() fault injection. */
#define VdHookBegin_Vd_ClrIntState(id)

/** \brief  FUNCTION:Vd_IrqHandler() fault injection. */
#define VdHookBegin_Vd_IrqHandler(id)
#define VdHookEnd_Vd_IrqHandler(id)
#define VdHookBegin_Vd_IrqHandlerPhase0()

/** \brief  FUNCTION:Vd_ErrorInjection() fault injection. */
#define VdHookBegin_Vd_ErrorInjection()

/** \brief  FUNCTION:Vd_Init() fault injection. */
#define VdHookBegin_Vd_Init()

/** \brief  FUNCTION:Vd_VinsetThresholdMap() fault injection. */
#define VdHookBegin_Vd_VinsetThresholdMap()
#define VdHookEnd_Vd_VinsetThresholdMap(id)

/** \brief  FUNCTION:Vd_TrimThresholdCalculate() fault injection. */
#define VdHookBegin_Vd_TrimThresholdCalculate()
#else
#include "McuExt_UserFault.h"
#endif /** #if (MCUEXT_FAULT_INJECTION == STD_OFF) */

#endif /* MCUEXT_FAULT_H */

/* End of file */
